/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ronin.dao.api;

import com.ronin.model.Urun;
import java.util.List;

/**
 *
 * @author esimsek
 */
public interface IUrunDao {
    
    Urun getSingle(Urun urun);
    
    Urun getSingleById(Long id);
    
    Urun getSingleOneByNamedQuery(String namedQuery,Object... parameters);
    
    List<Urun> getList(Urun urun);
    
    List<Urun> getListByNamedQuery(String namedQuery,Object... parameters);
    
    int getCount(Urun urun);

    void add(Urun urun);

    void update(Urun urun);

    void delete(Urun urun);
}
